GtkTextView: Fix regression in GtkSourceView drawing
authorAlexander Larsson <alexl@redhat.com>
Wed, 2 Oct 2013 13:14:56 +0000 (15:14 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 2 Oct 2013 14:23:41 +0000 (16:23 +0200)
commit1ac13435b7c14dd9b97ad7a9d292acd51337d66e
tree011bb6a966c9f2c0536cf7942b47e98b0a441d33
parent2d3c470aa5dca6eb3d4b6936482b91f96cb8697e
GtkTextView: Fix regression in GtkSourceView drawing

GtkSourceView draws before chaining upo to GtkTextView and assumes
that this will be visible, but the pixelcache will just overdraw
that with background.

So, we stop drawing the background to the pixel cache and instead
make it an CAIRO_CONTENT_COLOR_ALPHA surface to make the previously
drawn content see through.

This is slower, but more backwards compatible.

https://bugzilla.gnome.org/show_bug.cgi?id=708423
gtk/gtktextview.c